<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: yuanjie
  Date: 2018/5/8
  Time: 7:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
%>
<html>
<head>
    <title>${tCollectorData.title}</title>
    <style>
        .yuesu{ width:1260px; margin:0 auto; position:relative;}
    </style>
</head>
<body>
<div class="yuesu">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td height="20"></td>
    </tr>
    <tr>
        <td align="center" height="40" class="bodytitle"><strong>${tCollectorData.title}</strong></td>
    </tr>
    <tr>
        <td align="center" class="bodytd2">
            <c:choose>
                <c:when test="${tCollectorData.fydm == 'M10' }">
                    发布时间：${tCollectorData.fbsj}&nbsp;&nbsp;编 辑 :${tCollectorData.bjsh}&nbsp;&nbsp;&nbsp;<%--点击次数：${tCollectorData.djcs}--%>
                </c:when>
                <c:when test="${tCollectorData.fydm == 'M17' }">
                    发布时间：${tCollectorData.fbsj}&nbsp;&nbsp;作者:${tCollectorData.bjsh}&nbsp;&nbsp;&nbsp;<%--点击次数：${tCollectorData.djcs}--%>
                </c:when>
                <c:otherwise>
                    发布时间：${tCollectorData.fbsj}&nbsp;&nbsp;信息来源:${tCollectorData.xxly}&nbsp;&nbsp;信息发布:${tCollectorData.xxfb}&nbsp;&nbsp;编辑审核:${tCollectorData.bjsh}&nbsp;&nbsp;&nbsp;点击次数：${tCollectorData.djcs}
                </c:otherwise>
            </c:choose>
        </td>
    </tr>


    <tr>
        <td height="10"></td>
    </tr>
    <tr>
        <td height="1" bgcolor="#cbd7ec"></td>
    </tr>
    <tr>
        <td height="10"></td>
    </tr>

    <!--批示功能-->

    <tr>
    <tr>
        <td height="10"></td>
    </tr>

    <tr>
        <td>
            <iframe id="ifrName" name="ifrName" src="<%=path%>/collectorController/iframe?id=${tCollectorData.id}" scrolling="auto" width="100%" height="0" frameborder="0" onLoad="parent.document.all.ifrName.hello='net_lover'"></iframe>
        </td>
    </tr>
    <tr>
        <td height="20"></td>
    </tr>
    <%--<tr>
        <td align="right">[<a href="displaycont.asp?newsid=54919">全窗口浏览</a>] [<a style="cursor:hand;" href="#" onClick="Javascript:window.close();">关 闭</a>]&nbsp;&nbsp;

        </td>
    </tr>--%>
    <tr>
        <td height="20"></td>
    </tr>
</table>
<script>
    function a()
    {
        if(document.all.ifrName)
        {
            if(document.all.ifrName.hello=='net_lover'){
                document.all['ifrName'].style.height=ifrName.document.body.scrollHeight;
                clearInterval(d);
            }
        }
    }
    var d = setInterval("a()",100)
</script>
</div>
</body>
</html>
